home *** CD-ROM | disk | FTP | other *** search
/ Aminet 4 / Aminet 4 - November 1994.iso / aminet / comm / envoy / netprobe_4_24.lha / NetProbe / include / ui-shell.h < prev   
C/C++ Source or Header  |  1994-10-04  |  1KB  |  67 lines

  1. //
  2. //  $Log: ui-shell.h,v $
  3. //  Revision 1.3  1994/10/04  01:14:04  hakan
  4. //  Wurx
  5. //
  6. //  Revision 1.2  1994/09/10  23:29:04  hakan
  7. //  Still debugging
  8. //
  9. //  Revision 1.1  1994/06/14  20:38:43  hakan
  10. //  Initial revision
  11. //
  12. //
  13.  
  14.  
  15.  
  16. enum options
  17. {
  18.     OPT_OWNER,
  19.     OPT_IPADDR,
  20.     OPT_KICKSTART,
  21.     OPT_WORKBENCH,
  22.     OPT_NIPC,
  23.     OPT_FAST_MEM,
  24.     OPT_CHIP_MEM,
  25.     OPT_PROCESSOR,
  26.     OPT_CHIPS,
  27.     OPT_SERVICES,
  28.     OPT_ENTITIES,
  29.     
  30.     OPT_ALL,
  31.     
  32.     OPT_SCAN_REALMS,
  33.     OPT_SCAN_HOSTS,
  34.     OPT_SCAN_ALL,
  35.     OPT_SCAN_PING,
  36.  
  37.     OPT_KLUDGE,
  38.     OPT_SAVEFILE,
  39.     OPT_MAX_TIME,
  40.     OPT_MAX_PACKETS,
  41.     OPT_REALMS,
  42.  
  43.     OPT_COUNT,
  44. };
  45.  
  46.  
  47. enum scanmodes
  48. {
  49.     MODE_SCAN_REALMS,
  50.     MODE_SCAN_HOSTS,
  51.     MODE_SCAN_ALL,
  52.     MODE_SCAN_PING,
  53. };
  54.  
  55.  
  56.  
  57. //  #define _DEBUG_READARGS_
  58. #ifdef _DEBUG_READARGS_
  59. #define SetOption(a,b,c)    if (opts [a]) { NP_Config |= b; printf ("%s set\n", c);}
  60. #define SetMode(a,b,c)      if (opts [a]) { scanmode = b; printf ("Scanmode: %s\n", c); }
  61. #define SetNum(a,b,c)       if (opts [a]) { b = *(long*) opts[a]; printf ("Variable %s set to %d\n", c, b);}
  62. #else
  63. #define SetOption(a,b,c)    if (opts [a]) { NP_Config |= b; }
  64. #define SetMode(a,b,c)      if (opts [a]) { scanmode = b; }
  65. #define SetNum(a,b,c)       if (opts [a]) { b = *(long*) opts[a]; }
  66. #endif
  67.